public class Solution162 {
    public int findPeakElement(int[] nums) {
        long max= Integer.MIN_VALUE;
        int maxLocal=0;
        for(int i=0;i<nums.length;i++){
            if(nums[i]>max){
                max=nums[i];
                maxLocal=i;
            }
        }
        return maxLocal;
    }

    public static void main(String[] args) {
        Solution162 solution162=new Solution162();
        System.out.println(solution162.findPeakElement(new int[]{
                -2147483648,-2147483647
        }));
    }
}
